package com.test.service.impl;

import com.test.mapper.SysRoleResMapper;
import com.test.service.SysRoleResService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysRoleResServiceImpl implements SysRoleResService {

    @Autowired
    private SysRoleResMapper sysRoleResMapper;

    @Override
    public List<String> getResIdByRoleId(String roleId) {
        List<String> resIds = sysRoleResMapper.selectResIdByRoleId(roleId);

        System.out.println(resIds);
        System.out.println("菜单列表" + resIds.size());
        return resIds;
    }
}
